package com.njtoyo.taxi.admin.mapper.secondary.entity.data;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.secondary.enums.DataCallType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nutz.json.JsonIgnore;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DashboardCallDaily对象", description = "")
public class DashboardCallDaily implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "地区id")
    private Long cantonId;

    @ApiModelProperty(value = "统计日期,精确到每天")
    private Date statsDate;

    @ApiModelProperty(value = "呼叫数量")
    private Long num;

    @ApiModelProperty(value = "类型,1:预约单呼叫;2:实时单呼叫;")
    private DataCallType type;

    private Date createdAt;

    private Date updatedAt;

    @TableField(exist = false)
    @JsonIgnore
    @ApiModelProperty(value = "用于统计图表")
    private Long total;
}
